//
//  ContentView.swift
//  newsApp
//
//  Created by Doo Psyist on 2020/5/11.
//  Copyright © 2020 Doo Psyist. All rights reserved.
//

import SwiftUI

struct ContentView: View {
    var body: some View {
        TabView {
            NewsList()
                .tabItem {
                    Image(systemName: "square.stack.fill")
                    Text("新闻列表")
                }
            RecommendNews()
            .tabItem {
                Image(systemName: "r.circle.fill")
                Text("推荐新闻")
            }
            UserPage()
                .tabItem {
                    Image(systemName: "person.crop.circle")
                    Text("我")
                }
        }
    }
}

struct ContentView_Previews: PreviewProvider {
    static var previews: some View {
        ContentView()
    }
}
